﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  </head>
  

<body>
	<!-- <form action="login.action" method="post">
		用户：<input type="text" name="user.userName"><br>
		密码：<input type="password" name="user.userPwd"><br>
		<input type="submit" value="登录">
	</form> -->
	
	
	 <script languate="javascript"> 
        		
				//var tiaozhuan;
    			window.onload=denglu;
				
				
				
				
				function denglu(){
					//username=document.getElementById('usernamexianshi').value;
					//userpwd=document.getElementById('userpwdxianshi').value;
					//tiaozhuan="http://192.168.2.100:8001/archibus/schema/ab-core/views/ab-login.jsp?name="+username+"&pwd="+userpwd; 
					tiaozhuan="http://127.0.0.1:8001/archibus/login.axvw"; 
					 var userpwd= '<%=session.getAttribute("pasword") %>';
					var username= '<%=session.getAttribute("username") %>';   
					if(username!=""){
						document.getElementById('usernamexianshi').value=username;
					} 
					if(userpwd!=""){
						document.getElementById('userpwdxianshi').value=userpwd;
					} 
					document.getElementById('tiaozhuanchenggong').src=tiaozhuan;
				}
				
				
                function reinitIframe() {        
                        
 					try 
					{                          
						var bHeight = frame.contentWindow.document.body.scrollHeight;                
                                     
           				frame.height = bHeight;                      
					} 
        			catch (ex) { }                 
				}
        </script> 
   
<iframe marginwidth="0" src="" marginheight="0" height="100%" width="100%" name="i" id="tiaozhuanchenggong" frameborder="0" scrolling="no" onload="reinitIframe()" >
	</iframe>
<input type="hidden" id="usernamexianshi"  value=""/>
<input type="hidden" id="userpwdxianshi"  value=""/>
<input type="hidden" id="panduan"  value=""/>
<input type="hidden" id="xiangmu"  value=""/>
	

</body>

</html>
